{
    interface AnimationInterface{
        name: string,
        move():void
    }
    
    // 再一次重新声明接口，不会造成覆盖，会合并两个接口
    interface AnimationInterface{
        end():void
    }
    
    class Player implements AnimationInterface{
        name: string = "玩家"
        public move():void{
            console.log(`${this.name}在移动`);
        }
        public end():void{
            console.log("游戏结束");
        }
    }
    
    const play1 = new Player();
    play1.move();
    play1.end();
}